From 12a03a9a72f7895d571dbaeeb245d92aa277a610 Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Fri, 6 Oct 2023 17:48:03 +0200
Subject: refactor(components): merge HeadingButton and Widget components

The HeadingButton component was only used inside Widget component and
it is not very useful on its own so I merge the two components in a
new Collapsible component.
---
 src/pages/thematique/[slug].tsx | 18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)

(limited to 'src/pages/thematique/[slug].tsx')

diff --git a/src/pages/thematique/[slug].tsx b/src/pages/thematique/[slug].tsx
index cf610c7..95b4780 100644
--- a/src/pages/thematique/[slug].tsx
+++ b/src/pages/thematique/[slug].tsx
@@ -119,18 +119,24 @@ const ThematicPage: NextPageWithLayout<ThematicPageProps> = ({
           topics
             ? [
                 <LinksListWidget
+                  heading={
+                    <Heading isFake level={3}>
+                      {thematicsListTitle}
+                    </Heading>
+                  }
+                  items={getLinksListItems(thematics)}
                   // eslint-disable-next-line react/jsx-no-literals -- Key allowed
                   key="thematics"
-                  items={getLinksListItems(thematics)}
-                  title={thematicsListTitle}
-                  level={2}
                 />,
                 <LinksListWidget
+                  heading={
+                    <Heading isFake level={3}>
+                      {topicsListTitle}
+                    </Heading>
+                  }
+                  items={getLinksListItems(topics)}
                   // eslint-disable-next-line react/jsx-no-literals -- Key allowed
                   key="related-topics"
-                  items={getLinksListItems(topics)}
-                  title={topicsListTitle}
-                  level={2}
                 />,
               ]
             : []
-- 
cgit v1.2.3

